package com.stellar.auth.basic.service.impl;

import com.stellar.auth.basic.dao.AuthRoleDao;
import com.stellar.auth.basic.entity.AuthRole;
import com.stellar.auth.basic.service.AuthRoleService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * 角色表(AuthRole)服务实现
 *
 * @author Jqchan
 * @since 2025-05-16 18:06:56
 */
@Service
public class AuthRoleServiceImpl implements AuthRoleService {
    
    @Resource
    private AuthRoleDao authRoleDao;

    @Override
    public AuthRole queryById(Long id) {
        return authRoleDao.queryById(id);
    }

    @Override
    public AuthRole queryByCondition(AuthRole condition) {
        return authRoleDao.queryByCondition(condition);
    }

    @Override
    public List<AuthRole> queryAllByCondition(AuthRole condition) {
        return authRoleDao.queryAllByCondition(condition);
    }

    @Override
    public List<AuthRole> page(AuthRole condition, int page, int pageSize) {
        return authRoleDao.page(condition, page, pageSize);
    }

    @Override
    public int insert(AuthRole entity) {
        return authRoleDao.insert(entity);
    }

    @Override
    public int update(AuthRole entity) {
        return authRoleDao.update(entity);
    }

    @Override
    public int deleteById(Long id) {
        return authRoleDao.deleteById(id);
    }

    @Override
    public Long count(AuthRole condition) {
        return authRoleDao.count(condition);
    }

    @Override
    public List<AuthRole> queryByIds(List<Long> roleIds) {
        return authRoleDao.queryByIds(roleIds);
    }
}
